import axios from '@/libs/axios1';
let jsonHeaders = { 'content-type': 'application/json;charset=UTF-8' };
let base = '/new-res';
export const getPhysicalDevice = (data, params) => {
    return axios({
        url: `${base}/device/list`,
        method: 'POST',
        headers: jsonHeaders,
        data,
        params,
    });
};
export const getFlavor = (data, params) => {
    return axios({
        url: `${base}/flavor/list`,
        method: 'POST',
        data,
        params,
        headers: jsonHeaders,
    });
};
export const getImage = (params) => {
    return axios({
        url: `${base}/image/list`,
        method: 'POST',
        headers: jsonHeaders,
        params,
    });
};
//查询所有靶场
export const queryAllRange = () => {
    return axios({
        url: `${base}/ranges/all`,
        method: 'get',
        headers: jsonHeaders,
    });
};
